<script type="text/javascript">
function ajaxFileUpload(plan_reply_id)
{
	$.ajaxFileUpload
	(
		{		
			url:'index.php?c=zy_plan_reply&m=updateFile&plan_reply_id='+plan_reply_id,
			secureuri:false,
			fileElementId:'file_name',
			dataType: 'json',
			success: function (data)
			{
				if(data.code == 1){
					alert('上传成功');
					location=location;
				}else{
					alert('上传失败');
				}
			}
		}
	)
}
</script> 
<h2 class="title">计划批复信息</h2>
<table class="tb_term" width="100%">
<tr>
	<td class="tr_td_width01 alignright">计划申请编号</td>
	<td>
		{%if $investment_no%}
			<input type=text name="investment_no" value='{%$investment_no%}' class="input_browse_stand txt-normal"  readonly />
			<input type=hidden name='investment_no' id='investment_no' value='{%$investment_no%}' readonly />
		{%else%}
			<a href="index.php?c=zy_nvestment&is_jump=1" class="txt-normal">请选择</a>
		{%/if%}
	</td>
	<td class="tr_td_width01 alignright">计划申请日期</td>
	<td>
		<input type=text class="input_date_browse txt-normal"  name="plan_reply_time" value='{%$plan_reply_time|date_format:"%Y-%m-%d"%}' id="plan_reply_time" readonly>
	</td>	
</tr>
<tr>
	<td class="alignright">计划批复编号</td>
	<td><input type=text name="plan_reply_no" value='{%$plan_reply_no%}'  class="input_browse_stand txt-normal" readonly /></td>
	<td class="alignright">计划批复日期</td>
	<td>
		<input type=text  class="input_date_browse txt-normal"  name="plan_reply" id="plan_reply" value='{%$plan_reply|date_format:"%Y-%m-%d"%}'>
	</td>
</tr>
<tr>	
	<td class="alignright">计划批复金额</td>
	<td><input type="text" name="plan_reply_price" value='{%$plan_reply_price%}'  class="input_browse_num txt-normal" readonly /><label class="label01">万元</label></td>
	<td class="alignright">计划调整编号</td>
	<td><input type=text name="plan_change_no" value='{%$plan_change_no%}'  class="input_browse_stand txt-normal" readonly /></td>
</tr>
<tr>	
	<td class="alignright">计划调整金额</td>
	<td><input type="text" name="plan_change_price" value='{%$plan_change_price%}'  class="input_browse_num txt-normal" readonly /><label class="label01">万元</label></td>
	<td class="alignright">计划调整日期</td>
	<td><input type=text name="plan_change_time" value='{%$plan_change_time|date_format:"%Y-%m-%d"%}'  class="input_date_browse txt-normal" readonly /></td>
</tr>
<tr>
	<td class="alignright">计划批复附件</td>
	<td colspan="3">
		<div  class="wrap_accessory">
			<input type="file" name="file_path" id="file_name" size="50" class="input_upload txt-normal"  />
			<input type="button"  class="input_submit txt-normal" value="提交" onclick="ajaxFileUpload({%$plan_reply_id%})"/>
			{%if $file_path%}
			<label class="brower_download"><a href='{%$upload_file_path%}{%format_c c=$smarty.get.c%}{%$file_path%}' target="_blank">下载</a></label>
			{%/if%}
		</div>
	</td>
</tr>
<tr>
	<td class="alignright">计划批复备注</td>
	<td colspan="5"><textarea rows="3" class="textarea_edit txt-normal" id="plan_reply_content" name="plan_reply_content" readonly>{%$plan_reply_content%}</textarea></td>
</tr>

</table>
<p class="btn_right">
	<input type=hidden name='plan_reply_id' id='plan_reply_id' value='{%$plan_reply_id%}'>
	<button type="button" class="b-default" hidefocus="true" onclick="history.go(-1)"><span><em>返回</em></span></button>
</p>
</form>

<div class="title_box">
	<div class="title_txt">批复设备明细</div>
	<div class="find_bar">
		<form name="form_find" method="get" action="">
		<label class="find_name">设备名称</label>
		<input type="text" class="input_find" maxlength="50" name="cn_name" value="{%$smarty.get.cn_name%}">
		<input type="hidden" name="investment_no" value="{%$smarty.get.investment_no%}">
		<input type="hidden" name="m" value="{%$smarty.get.m%}">
		<input type="hidden" name="c" value="{%$smarty.get.c%}">
		
		<input type="hidden" name="plan_reply_id" value="{%$smarty.get.plan_reply_id%}">
		<!--<button type="submit" class="b-default" hidefocus="true"><span><em>查询</em></span></button>-->	
		<label class="find_btn" onclick="javascript:form_find.submit();"> 查询</label>
		</form>
	</div>
</div>

<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_04">批复序号</td>
	<td class="list_td_zw_10">中文名称</td>
	<!--<td class="list_td_zw_10">英文名称</td>
	<td>购置性质</td>-->
	<td>规格型号</td>
	<td class="list_td_zw_04">申请数量</td>
	<td class="list_td_zw_04">批复数量</td>
	<td class="list_td_zw_02">单位</td>
	<td class="list_td_zw_04">制造周期</td>
	<!--
	<td class="td_width6">造价(万元)</td>			
	<td>管理费</td>
	<td>增值税</td>
	<td>总价(万元)</td>-->
	<td class="list_td_zw_10">所属项目</td>
	<td class="list_td_zw_opt01">操作</td>
</tr>
{%foreach item=list from=$zy_mc_type_arr%}
<tr>
	<td>{%$list.zy_plan_replay_no%}</td>
	<td class="alignleft" title="{%$list.mc_cn_name%}">{%cut_str str=$list.mc_cn_name sublen=10%}</td>	
	<!--<td class="alignleft">{%cut_str str=$list.mc_en_name sublen=10%}</td>
	<td>{%$sell_type_arr[$list.sell_type_id]%}</td>-->
	<td class="alignleft">{%cut_str str=$list.mc_type_model sublen=15%}</td>
	<td>{%$list.plan_no%}</td>
	<td>{%$v_mc_arr[$list.v_mc_id].plan_reply_mc_number%}</td>
	<td>{%$list.unit%}</td>
	<td>{%$list.make_time%}</td>			
	<!--<td>{%$list.make_cost%}</td>
	<td>{%$list.manage_cost%}</td>
	<td>{%$list.vat%}</td>
	<td>{% $list.make_cost+$list.manage_cost+$list.vat%}</td>-->
	<td class="alignleft">{%cut_str str=$project_arr[$list.project_id] sublen=10%}</td>
	<td>
		<a href='index.php?c=zy_mc_type&m=edit&is_show=1&v_mc_id={%$list.v_mc_id%}&investment_no={%$investment_no%}'>查看</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="9">暂无内容</td></tr>
{%/foreach%}
</table>
<div class="pagenation aligncenter">
{%$page_footer%}
</div>
